Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Judgement proxy migration #4

Conversation

liamaharon
Copy link

} else {
// Nothing should change
expected_proxies.insert(who.clone(), (proxies, old_deposit));
expected_reserved_amounts.insert(who, current_reserved);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? The above if only triggers if both were modified. Maybe there needs to be an else if to trigger for either of them changed as well.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's deliberate, we only make changes if both were modified.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets suppose one proxy was removed, so first the user had 5 and now they have 4. But at the same time the deposit function was increased from 20 to 25. Then the num proxies decreased but the deposit stays the same, or?
But its a very edge case 😆

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's fine, in that case we just remove the invalid proxy and leave the deposit at 20.

Now that you mention it though my comment is misleading, since the proxies could still have changed. I'll adjust it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the comment.

relay/kusama/src/lib.rs Outdated Show resolved Hide resolved
relay/kusama/src/lib.rs Outdated Show resolved Hide resolved
@liamaharon liamaharon requested a review from ggwpez June 6, 2024 10:56
@ggwpez
Copy link

ggwpez commented Jun 10, 2024

Still needs a changelog entry.

@joepetrowski joepetrowski merged commit 40ea467 into joepetrowski:remove-kusama-relay-identity Jun 10, 2024
35 of 37 checks passed
@joepetrowski
Copy link
Owner

Still needs a changelog entry.

Will just be included in the main PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants